package nciae.db.service;


import com.baomidou.mybatisplus.extension.service.IService;
import nciae.db.common.CommonResult;
import nciae.db.pojo.entity.Course;
import nciae.db.pojo.vo.ApiCourseFilesVo;
import nciae.db.pojo.vo.ApiTimeTableVO;
import nciae.db.pojo.vo.CourseFilesVo;
import nciae.db.pojo.vo.CourseVO;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;


public interface CourseService extends IService<Course> {
    CommonResult search(Integer page, Integer limit, Integer projectId, String lessonDate, HttpServletRequest request);

    String importExcel(MultipartFile file, Integer projectId);

    CommonResult<List<ApiTimeTableVO>> apiInfo(Integer projectId);

    CommonResult saveLog(Course course);


    //删除课程信息以及文件信息
    boolean deleteById(Integer id);

    //获取课件信息
    CommonResult<CourseFilesVo> getCourseFiles(Integer courseId);

    //获取url文件信息
    CommonResult<ApiCourseFilesVo> getUrlFiles(Integer courseId, String fileName);

    boolean updateCourseFile(MultipartFile file, Integer courseId);


}
